package rules;

import stock.Company;

public class SellRule12 extends Rule {

	@Override
	public boolean matches(Company company) {

		//Percentage Positive Variation
		boolean percentageVariation = ((((company.getWeekInfo().get(4)/company.getWeekInfo().get(0))-1)*100) >= 8);

		if ( percentageVariation ){
			return this.next(company);
		}
		
		return false;
	}

}